/**
 * Created by zz on 2017/10/25.
 */

var mateCacheStr = '';
$(window).ready(function (){
    $("link").each(function (){
        $(this).attr("href",$(this).attr("href")+"?" + new Date().getTime());
    });
    $("script").each(function (){
        if($(this).attr("src")){
            $(this).attr("src",$(this).attr("src")+"?" + new Date().getTime());
        }
    });
    mateCacheStr+='<meta http-equiv="Expires" content="0">';
    mateCacheStr+='<meta http-equiv="Pragma" content="no-cache">';
    mateCacheStr+='<meta http-equiv="Cache-control" content="no-cache">';
    mateCacheStr+='<meta http-equiv="Cache" content="no-cache">';
    $("title").before(mateCacheStr);
});